﻿<div class="left_col no_sidebar_center_all">
<div id="multiple_post">

<?php
if (have_posts()) :?>

 	  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 	  <?php /* If this is a category archive */ if (is_category()) { ?>
		<h1 class="pagetitle">Archive for the &#8216;<u><?php single_cat_title(); ?></u>&#8217; category</h1>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h1 class="pagetitle">Posts Tagged &#8216;<u><?php single_tag_title(); ?></u>&#8217;</h1>
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h1 class="pagetitle">Archive for <u><?php the_time('F jS, Y'); ?></u></h1>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h1 class="pagetitle">Archive for <u><?php the_time('F, Y'); ?></u></h1>
 	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h1 class="pagetitle">Archive for <u><?php the_time('Y'); ?></u></h1>
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h1 class="pagetitle"><u>Archive for <?php the_post(); echo get_the_author(); rewind_posts();?></u></h1>
 	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h1 class="pagetitle">Data Archive</h1>
 	  <?php } endif;?>

<div class="clear"></div>
<br />

<?php 
	
	for($i=1;$i<10 && have_posts();++$i) {?>
  <div class="post_content_main">
  <?PHP
the_post();
  if( has_post_thumbnail() && is_archive() ) the_post_thumbnail(array(150,150));
else { /* ?>
<img class="attachment-150x150" src="<?php bloginfo('template_url'); 
	//$templatePath= get_absolute_template_path();
	//$settings=	json_decode(file_get_contents($templatePath."/settings.txt"));
	//echo "/images/reader.jpg";//. $settings->title_image; 
	
?>" alt="default post icon" style="height: 150px;width:150px"/>
	
<?PHP */;
echo get_avatar( get_the_author_meta('user_email'),80 );
} ?>
     <div class="title">
	 <!--
         <div class="other" style="">
             <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="godhulii">Tweet</a>
             <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/twitter.js"></script>
             <br />
         </div>
     -->
		
		<a href="<?PHP the_permalink(); ?>">
		<div><?PHP the_title(); ?></div>
		 <!--
      <h2>Welcome</h2>
      lace holder so you can see how the site would look like.
         -->
		 </a>         
    </div>

     <div class="excerpt_content_main">
         <?PHP the_excerpt(); ?>
		 <a href="<?PHP the_permalink(); ?>"><small>continue</small></a>
     </div>
      <br />      
  </div>

<?php } ?>

<?php if(function_exists('wp_simple_pagination')) {
    wp_simple_pagination();
} ?>     
</div> <!--  mutiple post div ends here -->
</div>  <!-- left_col div ends here -->